<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>

</head>
<body>

<select name="" id="me"></select><br/>
<button id="btn">Click</button>
<script>
    var data = [{
        id:1,
        name:'sunyu'
    },{
        id:2,
        name:'zhangsan'
    }];
    $(function(){
        var opts = "<option>==请选择==</option>";
        for(var i = 0;i<data.length;i++){
            var me = data[i];
            opts += $.common.format("<option value='{0}'>{1}</option>",me.id,me.name);
        }
        $("#me").html(opts);
    });
    $("#btn").on('click',function(){
        var me = {
            id:1
        };
        $.common.setSelectByValue("me",me.id);
    })
</script>
<script src="../src/js/jquery.baseCommon.js"></script>
</body>
</html>